/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import entidades.TagAlbum;
import java.util.List;

/**
 *
 * @author Tarde
 */
public class DaoTagAlbum extends Dao<TagAlbum>{

    public DaoTagAlbum() {
        super(TagAlbum.class);
    }
    public List<TagAlbum> buscaTagNome(String nome) {
            return getEm().createQuery("SELECT e FROM "+TagAlbum.class.getSimpleName()+" e WHERE e.nome=\""+nome+"\"").getResultList();
    }
}
